import Taro from '@tarojs/taro'
import * as api from '../apis';

export const auth = async (code: String) => {
  return Taro.request({
    method: "POST",
    url: api.auth,
    data: {
      code
    }
  });
}
